<?php
session_start();
      if (isset($_SESSION['k_username'])) {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="../../css/style.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title >Generar Codigo de Barra</title>
</head>
<body>
<form action="generarcodigobarra.php" method="post">
<table>
<tr><td>Texto</td><td><input name="texto" type="text" /></td></tr>
<tr><td>Ancho</td><td><input name="ancho" type="text" /></td></tr>
<tr><td>Largo</td><td><input name="largo" type="text" /></td></tr>
<tr><td><input name="envia" type="submit" /></td><td><input name="resetea" type="reset" /></td></tr>
</table>
</form>
<? echo "<IMG SRC=\"barcode.php?barcode=$_POST[texto]&width=$_POST[ancho]&height=$_POST[largo]&format=\"jpeg\"&quality=100 /> "; ?>
</body>
</html>
<?

}
?>